package com.tust.app.dao;

import com.tust.app.domain.News;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;


@Mapper
public interface NewsMapper {
    List<News> selectAllNews();
    News selectNewsById(Integer id);
    List<News> selectNewsByTitle(String title);

    Integer writeNews(News news);
    boolean deleteNewsById(Integer id);
    boolean updateNews(News news);



}
